From bbe8d13c6e2e6d134fb2d099b1ac83c82d391a88 Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Wed, 4 May 2011 23:23:13 +0100 Subject: [PATCH] GtkFontChooser: Check if the deprecated widgets are present before updating the size list --- gtk/gtkfontchooser.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c index 5da1d04d50..074124abe1 100644 --- a/gtk/gtkfontchooser.c +++ b/gtk/gtkfontchooser.c @@ -412,8 +412,11 @@ spin_change_cb (GtkAdjustment *adjustment, gpointer data) #ifndef GTK_DISABLE_DEPRECATED - priv->ignore_size = TRUE; - update_size_list_selection (fontsel); + if (priv->size_list) + { + priv->ignore_size = TRUE; + update_size_list_selection (fontsel); + } #endif /* GTK_DISABLE_DEPRECATED */ gtk_widget_queue_draw (priv->preview); -- 2.30.2